package cnpm02.j2ee.group3.model;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.NotNull;

@SuppressWarnings("serial")
@Entity
@Table(name = "GENERAL_REGULATION")
@AttributeOverride(name = "id", column = @Column(name = "GeneralRegulationId"))
public class GeneralRegulation extends AbstractEntity {
	
	@NotNull
	@Column(name = "MaxPersonEachBookingTurn")
	private int maxPersonEachBookingTurn;
	@NotNull
	@Column(name = "VAT")
	private float vat;
	@NotNull
	@Column(name = "ServiceFee")
	private int serviceFee;

	public void setMaxPersonEachBookingTurn(int maxPersonEachBookingTurn) {
		this.maxPersonEachBookingTurn = maxPersonEachBookingTurn;
	}

	public int getMaxPersonEachBookingTurn() {
		return maxPersonEachBookingTurn;
	}

	public void setVat(float vat) {
		this.vat = vat;
	}

	public float getVat() {
		return vat;
	}

	public void setServiceFee(int serviceFee) {
		this.serviceFee = serviceFee;
	}

	public int getServiceFee() {
		return serviceFee;
	}
}
